import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

export default defineConfig({
    plugins: [vue()],
    resolve: {
        alias: {
            '@': resolve(__dirname, 'src')
        }
    },
    css: {
        preprocessorOptions: {
            less: {
                additionalData: `@import "@/assets/style/common.less";`,
                javascriptEnabled: true
            }
        }
    },
    server: {
        port: 6000,
        open: true
    }
})
